package com.hospital.common.core.exception;

public enum ExceptionHelpEnum {
    FILED_INSERT_EXAM_MASTER(501, "插入检查主表数据失败！"),
    FILED_REQ_BILL_SERVER(502, "请求计费服务失败！"),
    FILED_DELETE_BILL(503, "删除单号中临时计费表数据失败！"),
    RECUR_BILL(504, "当前单号中项目已收费不能重复收费！"),
    INSERT_ORDER_DESC(505, "插入门诊医嘱正式主表数据失败！"),
    DELETE_ORDER_DESC_TEMP(506, "删除临时医嘱主表数据失败！"),
    UPDATE_ITEM_BILL_CHARGE_FLAG(507, "更新收费标记失败！！"),
    REQ_INFOR_ERRE(508, "当前申请信息异常请联系信息人员！"),
    REQ_INFOR_NULL(509, "当前单号申请信息未查找到！"),
    QUERY_EXAM_BILL_ITEM_NULL(510, "根据检查中查询出计费的项目为空，不能进行计费！"),
    EXAM_BILL_UNQUERY(511, "当前有计费项目未存入数据库，不能进行计费！"),
    DELETE_REQ_INFO(512, "删除申请信息失败！"),
    EXAM_BILL_ITEM(513, "检查单号为空或要计费的项目为空，不能进行计费！"),
    FILED_TRANS_DATEFORMAT(514, "时间转换出现问题！"),
    INSERT_EXAM_PAT_MI(515, "插入检查主索引失败！"),
    RECEIVE_DATE(516, "接收到的处方计费消息中无计费项目或与数据库中计费项目不符！"),
    FILED_TRANS_BILL_REC(521, "接收到计费返回字符串转换格式出现问题！"),
    PRESC_BILL_ITEM(517, "当前计费项目无对照计价项目！"),
    UPDATE_OUTP_PRESC(518, "更新门诊医嘱处方计费标记失败！"),
    UPDATE_OUTP_DRUG_PRESC(519, "更新门诊药品处方计费标记失败，查看药品处方是否审方！"),
    COMMBILL(520, "处理门诊医嘱主表临时表，明细表临时表，以及插入门诊医嘱主表或调用计费服务失败！"),
    UPDATE_OUTP_DOC_ASS(521, "更新门诊处置表计费标记失败！"),
    QUERY_ORDER(522, "未查找医嘱数据"),
    ALL_DRUG(523, "混合模式中过滤药品更新相关业务表出现问题"),
    ALL_EXAM(524, "混合模式中过滤检查更新相关业务表出现问题"),
    ALL_LAB(525, "混合模式中过滤检验更新相关业务表出现问题"),
    ALL_ONE_BILL(526, "混合模式中获取单号下医嘱明细项目失败！"),
    ALL_ONE_BILL_ORDER(527, "混合模式中获取单号下医嘱失败！"),
    UPDATE_OUTP_Assis(528, "更新门诊处置计费标记失败！"),
    SEND_SETTLE_FILD(529, "调用计费接口失败"),
    CHECK_INPSTR_ERR(544, "处理数据异常"),
    LAB_ORDER_GET(530, "检验开单接口中获取关键字段失败！"),
    LAB_ORDER_INP_PAT(531, "检验开单接口中获取入参中患者信息失败！"),
    LAB_ORDER_INP_ORDER(532, "检验开单接口中获取入参中申请医嘱信息为空！"),
    LAB_ORDER_INP_DIAG(533, "检验开单接口中获取入参中诊断信息失败,或门诊诊断数量大于1！"),
    LAB_ORDER_INP_PATTABLE(534, "检验开单接口中获取患者主索引信息失败查表！"),
    LAB_ORDER_BILLINFO(535, "检验开单接口中获取医嘱项目信息失败或当前门诊或住院有多条rank不为空的在用医嘱信息！"),
    LAB_ORDER_BILLITEMS(536, "检验开单接口中获取医嘱项目计费信息失败！"),
    CLINIC_MASTER_INSERT(537, "插入门诊挂号信息失败！"),
    OUTP_MEDREC_INSERT(538, "插入门诊诊断信息失败！"),
    OUTP_PREPAY_RCPT_TEMP_INSERT(560, "插入门诊订单交易表OUTP_ORDER_DESC_TEMP数据失败！"),
    OUTP_PREPAY_RCPT_VS_BILL_INSERT(561, "插入门诊订单交易对照表ORDER_VS_BILLNO数据失败！"),
    OUTP_ORDER_DESC_TEMP_INSERT(539, "插入门诊医嘱临时信息失败！"),
    OUTP_BILL_ITEMS_TEMP_INSERT(540, "插入门诊临时费用信息失败！"),
    OUTP_DOCTOR_ASSISTANT_INSERT(541, "插入门诊处置信息失败！"),
    LAB_TEST_MASTER_INSERT(542, "插入检验主记录信息失败！"),
    LAB_TEST_ITEMS_INSERT(543, "插入检验明细项目信息失败！"),
    LAB_CHECK_RETR_ORDER(545, "该患者此申请单号已完成申请，请勿重复提交！"),
    BILL_NO_GET_ERROR(546, "根据提供信息获取不到计费单号、获取多个计费信息或SETTLE_FLAG标记不为0"),
    DIAG_ERR_FILDS(547, "诊断信息中比填写字段未填写，请查看文档对照"),
    HL7_XMLFILE_FILDS(548, "HL7的XML消息存入文件失败！"),
    HL7_API_POST_FILDS(549, "转HL7消息接口调用失败"),
    GET_AUTO_RCPT_NO_INFO(550, "获取结算流水号配置信息出错【AUTO_SETTLE_WIN】"),
    BILL_OLD(551, "该计费单中包含已计费单号请检查改申请计费消息中的单号！"),
    BILL_CHECK_OLD(552, "该计费申请中未查找到需要计费的单号！"),
    GET_HL7_CONFIGER_ERR(553, "XML_HL7_FILE,XML_HL7_URL,WX_HL7_POST_URL参数获取异常！"),
    ITEM_NULL_COSTS(554, "医嘱项目中无项目应收或实收费用，请检查入参！"),
    CANCEL_ORDER_BILL(555, "申请单号中有已计费单号不能撤销！"),
    CANCEL_ORDER_STATUS(556, "申请单号中有不是新开单号不能撤销！"),
    CANCEL_ORDER_LAB_STATUS(557, "撤销单号中检验主表失败！"),
    CANCEL_ORDER_LAB_DETAIL_STATUS(557, "撤销单号中检验明细失败！"),
    CANCEL_ORDER_ASS_STATUS(557, "撤销单号中处置信息失败！"),
    CANCEL_ORDER_LAB_INFOR(558, "根据单号未查找到开单信息！"),
    ANCEL_ORDER_LAB_BILLNO(559, "撤销申请中无单号入参信息！"),
    EXAM_MASTER_INSERT(560, "插入检查申请主记录信息失败！"),
    EXAM_ITEMS_INSERT(561, "插入检查明细项目信息失败！"),
    EXAM_BILL_ITEMS_INSERT(562, "插入检查明细计费项目信息失败！"),
    PRESC_MASTER_INSERT(560, "插入门诊处方主记录信息失败！"),
    PRESC_ITEMS_INSERT(561, "插入门诊处方明细项目信息失败！"),
    CHECK_INTERFACE_COMM(562, "入参中医院标识、医院名称或门诊住院标识解析出错，请检查！"),
    CHECK_BILL_SETTLE_FLAG(563, "计费入参中结算标识为1，但结算信息解析不到，请检查！"),
    CHECK_BILL_IS_INHOS(564, "住院计费入参中患者是否在院！"),
    BILL_GET_ORDER_DETAIL(565, "计费中按订单号查找不到对应的HIS业务明细单号！"),
    INSERT_BILL_FALID(566, "计费接口调用失败！"),
    INSERT_BILL_TABLE_FALID(583, "计费数据插入失败,请查看详细日志！"),
    NOT_ENOUGHT_BILL(584, "用户余额不足扣除当前费用，请患者充值后再计费!"),
    SEND_APPLY_MSG_FILAD(567, "推送申请消息失败！"),
    UPDATE_AUTO_SETTLE_NO_FILAD(568, "更新自动结算帐号配置失败！"),
    API_BILL_FILED(569, "计费接口连接失败，查看是开启服务！"),
    INSERT_ORDER_INFO(570, "合并订单未插入数据，请重新申请！"),
    INSERT_ORDER_INFO_1(571, "合并订单未插入数据异常！"),
    INSERT_ORDER_DETAIL(572, "合并订单插入明细数据异常！"),
    QUWEY_ORDER_FAILED(573, "合并订单HIS业务单号之前存在已合并单号请先取消！"),
    ORDER_COMM(574, "入参中无门诊住院标识、或结算标识"),
    ORDER_GET_MORE_NULL(575, "根据订单获取多个信息或未获取到订单信息！"),
    PRESC_CHECK_JSON(576, "处方审核回调接口格式不正确！"),
    PRESC_CHECK_UNLL(577, "处方审核回调接口传入处方未找到"),
    PRESC_CHECK_OLD(578, "处方为已审核过处方不再重新审核！"),
    PRESC_CHECK_CHANGE_VERIFY_FLAG(579, "处方审核回调接口更新处方审核标记失败！"),
    PRESC_CHECK_SAVE_PRESC_MASTER(580, "处方审核回调接口保存处方主记录失败！"),
    PRESC_CHECK_SAVE_PRESC_DETAIL(581, "处方审核回调接口保存处方明细记录失败！"),
    PRESC_CHECK_DO_DATA(582, "处方审核回调接口获取关键信息数据异常！"),
    PRESC_CHECK_GET_ORDER_ERR(583, "根据传入信息获取申请信息失败!"),
    PRESC_CHECK_REFUSE_TOOLONG(584,"处方拒绝理由过长!"),
    ORDER_PAY_WAY_ERR(585,"订单创建入参中支付方式未定义，请检查！"),
    ORDER_RESETTLE_UNKNOW(586,"无此订单记录不能退费！"),
    NULL_TRANSACT_TYPE(587,"无此业务操作类型！"),
    UPDATE_ORDER_INFO_ZERO(588,"更新订单信息0条！"),
    UPDATE_ORDER_INFO_ERR(589,"更新订单信息异常！"),
    UPDATE_ORDER_CANCEL(590,"更新订单有校标记失败"),
    INSER_ORDER_REFUND(591,"插入退费医嘱失败"),
    REFUND_ORDER_NULL(592,"退费申请中未找到需要退费的医嘱失败"),
    REFUND_RCPT_GET_ERR(593,"退费获取退费结算号失败"),
    SERVICE_ERR(594,"异常错误java.io.IOException; 必须对其进行捕获或声明以便抛出"),
    BASIC_DATA_ERR(595,"基础数据异常，outp_doctor_presc_master表中presc_type、dispensary、order_type数据未填写，请联系信息科！"),
    NO_STOCK(596,"此订单中包含材料无库存，请科室配合入库！"),
    NO_EXAM_REQ(597,"此订单中包含检查申请表或计费主表数据异常，请联系信息部门处理！"),
    API_QUERY_DETAIL_FILED(598,"查询项目费用明细失败！"),
    API_QUERY_DETAIL_(599,"查询项目费用明细异常！"),
    ORDER_OTHER_DETAIL_ERR(600,"门诊医嘱开单其它明细及主表数据插入失败！"),
    OUTP_REGIST_ERR(601,"门诊挂号信息处理失败！"),
    OUTP_VISIT_ERR(602,"门诊病历信息处理失败！"),
    OUTP_ORDER_ERR(603,"门诊开单信息处理失败！"),
    INP_VISIT_INFO(604,"住院患者无住院号！"),
    NOT_VERIFY_PRESC(605,"该计费单中包含处方未审方或已拒绝，不能计费！"),
    NULL_ITEMDATA(606,"无医嘱明细不能开单！"),
    NULL_PERFORM(607,"无执行科室不能开单！"),
    NULL_SPECIMEN(608,"检验无标本类型不能开单！"),
    NULL_CHRONIC(609,"处方无慢病标识不能开单！"),
    NULL_PRESC_FILEDS(610,"处方无用药频次或用药天数或用药途径或用药剂量不能开单！"),
    NULL_AMOUNT(611,"开单时项目数量不能为空！"),
    NULL_EXAMCLASS(612,"检查项目开单时项目类别获取异常！"),
    NULL_DIAGS(613,"无此次就诊的诊断信息，请查看患者是否常规就诊！"),
    HOS_CONFIG_ERROR(700, "医院信息配置异常，请检查！"),
    INSUR_OWN_INFO_ERROR(701, "此院内ID下未获取医保信息！"),
    INSERT_AMP_002_ZERO(702, "插入退款响应数据0条！"),
    INSERT_AMP_002_ERROR(702, "插入退款响应异常！"),
    VALIDATOR_MAP(703, "参数验证异常"),
    INSUR_PATINFO_ERR(704, "根据患者提供证件号未获取到患者院内信息"),
    INSUR_INFO_ERR(704, "根据患者提供证件号未获取到患者医保信息"),
    ILL_MASTER_ERR(705, "结算确认主记录类对象转换Map出错"),
    ILL_DETAIL_TOMAP_ERR(706, "结算确认主记录类对象转换Map出错"),
    ILL_DETAIL_ERR(707, "结算确认主记录类对象转换Map出错"),
    INSERT_ORG003_MASTER_ERR(708, "结算确认主记录插入失败"),
    INSERT_ORG003_DETAIL_ERR(709, "结算确认明细记录插入失败"),
    INSERT_ORG003_MASTER_ZERO(708, "结算确认主记录插入失败"),
    INSERT_ORG003_DETAIL_ZERO(709, "结算确认明细记录插入失败"),
    BILL_API_CONNCT_ERR(710, "计费接口请求失败"),
    BILL_API_URL_ERR(710, "计费接口参数未配置"),
    ORDER_ERROR(711, "此订单号信息查询有误，请核对"),
    SIGN_ERR(712, "入参验签失败！"),
    UN_OPEN(713, "此功能暂未开放！"),
    UNKNOW_ERR(800, "未知异常错误！"),

    REGIST_ERR(1001,"预约挂号异常，请稍后！"),
    REGIST_MORE(1016,"已预约同科室同号别,若想预约其它时段请先取消当天的其它同科室同号别预约！"),
    REGIST_NULL(1002,"您所预约时间内的号别暂未配置，请预约其它时段或反馈客服！"),
    REGIST_NONE(1003,"您所预约时间段号源已预约完，请选择其他号源！"),
    REGIST_REFUSE(1004,"您已经爽约超过5次!如需挂号,请您在窗口办理！"),
    REGIST_APPOINTS_INSERT(1005,"预约数据异常，请重新申请！"),
    REGIST_CLINIC_SEQUEEN(1006,"预约排队数据异常，请重新申请！"),
    REGIST_CLINIC_FOR_REGIST(1007,"号表数据异常，请重新申请！"),
    HOS_ERROR_PARAM(1008,"参数校验失败"),
    REGIST_CLINIC_CONFIG(1009,"配置科室对照的’dept_code‘异常，请联系相关科室！"),
    REGIST_QUERY_NULL(1010,"未查询到此预约记录，请联系客服！"),
    REGIST_REFUSE_MORE(1011,"您已经爽约超过5次，不能取消，请联系客服！"),
    REGIST_REFUSE_CANCEL_SE(1012,"取消预约排队数据异常，请联系客服！"),
    REGIST_QUERY_ARR(1013,"此预约已报到不能取消！"),
    REGIST_QUERY_VISIT(1014,"此预约已就诊不能取消！"),
    REGIST_QUERY_CANCEL(1015,"此预约已取消不能重复取消！"),
    REGIST_QUERY_CONFIG(1017,"门诊号别定义'CLINIC_INDEX'未完善，请联系客服！"),
    REGIST_BUSS(1018,"处理中，服务较忙，请稍后重试！"),

    NOTICE_UPDATE_SORT_ERR(1501,"更新模板显示顺序异常！"),
    NOTICE_UPDATE_SORT_VALUE_ERR(1502,"更新模板对应值序号异常！"),
    NOTICE_UPDATE_SORT_VALUE_OLD_ERR(1502,"更新已有模板对应值序号异常！"),
    NOTICE_UPDATE_SORT_VALUE_NEW_ERR(1503,"更新新模板对应值序号异常！"),
    ;

    ExceptionHelpEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    ExceptionHelpEnum(String s) {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }
}
